package com.fhz.mvvm.dataSource.retrofit

import androidx.lifecycle.LiveData
import com.fhz.loginmvvm.callback.ApiResponse
import com.fhz.mvvm.api.YaoServiceApi
import com.fhz.mvvm.entity.User
import com.fhz.mvvm.entity.UserEntity
import javax.inject.Inject

/**
 * 时间:2023/3/27
 * @author Mr.Feng
 * 简述: 远程请求,使用api
 */
class UserRetrofitService @Inject constructor(private val serviceApi:YaoServiceApi) {

    //从服务器请数据
    fun login(name:String ,pwd:String) : LiveData<ApiResponse<UserEntity>>{
       return serviceApi.login(name,pwd)
    }



}